class Simple:
    def __init__(self,pa1):
        self._a1 = pa1
        pass
a = Simple(100)
a.a2 = '123'
def fun1():
    print('i am fun1')
print(a._a1)
a.m1 = fun1
a.m1()
a.a3 = 12
print(a.__dict__)